class Animal{
    public String name;
    public int age;
    public void eat(){
        System.out.println(name+"正在吃饭");
    }
}
class Dog extends Animal{

    public void fun(){
        System.out.println(name+"汪汪叫");
    }
}
class Cat extends Animal{
    public void catchMouse(){
        System.out.println(name+"捉老鼠");
    }
}
public class Test {
    public static void main(String[] args) {

    }
}
